<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<link href="assets/css/bootstrap-select.css" rel="stylesheet" />
<script src="assets/js/select2/select2.js"></script>
<div class="row">
	<!-- 映射列表 -->
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="leftTree">
		<div class="widget flat radius-bordered">
			<div class="widget flat searchCriteria">
				<div class="widget-header bordered-bottom bordered-sky theme-bordered">
					<span class="widget-caption">筛选区</span>
					<div class="widget-buttons">
						<!-- 业务按钮 begin -->
						<label class="businessBtns">
							<button class="btn btn-info shiny search"><i class="fa fa-search"></i>搜索</button>
							<button class="btn btn-success shiny add" serializeNum="${serializeNum}" editUrl="${editUrl}"><i class="fa fa-plus"></i>新增</button>
							<button class="btn btn-magenta shiny update" serializeNum="${serializeNum}" editUrl="${editUrl}"><i class="fa fa-pencil"></i>修改</button>
							<button class="btn btn-danger shiny batchDelete" serializeNum="${serializeNum}" batchDeleteUrl="${batchDeleteUrl}"><i class="fa fa-pencil"></i>删除</button>
							<button class="btn btn-palegreen shiny download"><i class="fa fa-download"></i>导出</button>
						</label>
						<!-- 业务按钮 end -->
						<!-- 面板控制按钮 begin -->
						<a href="#" data-toggle="collapse"><i class="fa red fa-minus"></i></a>
						<a href="#" data-toggle="config"><i class="fa red fa-cog"></i></a>
						<!-- 面板控制按钮 end -->
					</div><!--Widget Buttons-->
				</div><!--Widget Header-->
				<div class="widget-body" style="display: block;">
					<div class="search_Bar">
						<form id="${searchFormId}" action="${actionUrl}" method="POST">
							<table class="searchAreaTable">
								<tbody>
								<tr>
									<!-- 条件属性,所有条件放在一行,系统自动计算每一行展示的条件属性个数 -->
									<th><label>用户名</label></th>
									<td><input type="text" name="adminUser.userName" value="${search_map.adminUser.userName[0]}"></td>
									<th><label>编号</label></th>
									<td><input type="text" name="taskNnum" value="${search_map.taskNnum[0]}"></td>
									<th><label>名称</label></th>
									<td><input type="text" name="name" value="${search_map.name[0]}"></td>
									<th><label>创建时间</label></th>
									<td>
										<div class="beginValueDiv">
											<input id="d4311" type="text" name="createTime_begin" class="beginValue Wdate" value="${search_map.createTime_begin[0]}"
												   onFocus="WdatePicker({doubleCalendar:true,maxDate:'#F{$dp.$D(\'d4312\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="起始时间" >
										</div>
										<div class="endValueDiv">
											<input id="d4312"  type="text" name="createTime_end" class="endValue Wdate"  value="${search_map.createTime_begin[0]}"
												   onFocus="WdatePicker({doubleCalendar:true,minDate:'#F{$dp.$D(\'d4311\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="结束时间" >
										</div>
									</td>
									<th><label>开始处理时间</label></th>
									<td>
										<div class="beginValueDiv">
											<input id="d4311" type="text" name="beginTime_begin" class="beginValue Wdate" value="${search_map.beginTime_begin[0]}"
												   onFocus="WdatePicker({doubleCalendar:true,maxDate:'#F{$dp.$D(\'d4312\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="起始时间" >
										</div>
										<div class="endValueDiv">
											<input id="d4312"  type="text" name="beginTime_end" class="endValue Wdate"  value="${search_map.beginTime_begin[0]}"
												   onFocus="WdatePicker({doubleCalendar:true,minDate:'#F{$dp.$D(\'d4311\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="结束时间" >
										</div>
									</td>
									<th><label>处理结束时间</label></th>
									<td>
										<div class="beginValueDiv">
											<input id="d4311" type="text" name="endTime_begin" class="beginValue Wdate" value="${search_map.endTime_begin[0]}"
												   onFocus="WdatePicker({doubleCalendar:true,maxDate:'#F{$dp.$D(\'d4312\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="起始时间" >
										</div>
										<div class="endValueDiv">
											<input id="d4312"  type="text" name="endTime_end" class="endValue Wdate"  value="${search_map.endTime_begin[0]}"
												   onFocus="WdatePicker({doubleCalendar:true,minDate:'#F{$dp.$D(\'d4311\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="结束时间" >
										</div>
									</td>
									<th><label>处理结果</label></th>
									<td><input type="text" name="result" value="${search_map.result[0]}"></td>
									<th><label>状态</label></th>
									<td>
										<select name="status" class="selectpicker" data-live-search="true">
											<optgroup label="选择" data-icon="icon-ok">
												<option value="">所有</option>
												<option value="1">待处理</option>
												<option value="2">处理中</option>
												<option value="3">成功完成处理</option>
												<option value="4">处理过程发生异常</option>
											</optgroup>
										</select>
										<script type="text/javascript">
                                            $("[name='isThumbnail']").val("${search_map.status[0]}");
										</script>
									</td>
									<th><label>版本</label></th>
									<td><input type="text" name="version" value="${search_map.version[0]}"></td>
								</tr>
								</tbody>
							</table>
						</form>
					</div>
				</div><!--Widget Body-->
			</div><!--Widget-->
			<div class="widget-body no-padding">
				<div class="topPagingBar">
					${pagingBar}
				</div>
				<div class="table-scrollable">
					<!-- 数据表列信息列表 -->
					<table class="table table-bordered dataTable">
						<thead>
						<tr>
							<th title="选择" class="checkboxColumnTh fixedColumn " fixed-align="left">
								<div class="checkbox">
									<label>
										<input type="checkbox" class="chkAll">
										<span class="text"></span>
									</label>
								</div>
							</th>
							<th title="属性名">序号</th>
							<th title="主键">主键</th>
							<th title="用户名">用户名</th>
							<th title="任务编号">编号</th>
							<th title="任务名称">名称</th>
							<th title="任务创建时间">创建时间</th>
							<th title="任务开始处理时间">开始处理时间</th>
							<th title="任务处理结束时间">处理结束时间</th>
							<th title="任务处理结果">处理结果</th>
							<th title="任务状态（1：待处理，2：处理中，3：成功完成处理，4：处理过程发生异常）">任务状态</th>
							<th title="版本">版本</th>
							<th class="fixedColumn" style="width: 100px">操作</th>
						</tr>
						</thead>
						<tbody>
						<#if page_bean.list?size==0>
							<tr>
								<td align="center">无数据</td>
							</tr>
						</#if>
						<#list page_bean.list as data>
							<tr>
								<td class="checkboxColumnTd">
									<div class="checkbox">
										<label>
											<input type="checkbox" class="chk"  name="id" value="${data.id}">
											<span class="text"></span>
										</label>
									</div>
								</td>
								<td>${data_index+1+(page_bean.pageNo-1)*page_bean.pageSize}</td>
								<td>${(data.id???string(data.id?html,"未设置"))!'未设置'}</td>
								<td>${(data.adminUser.userName???string(data.adminUser.userName?html,""))!'未设置'}</td>
								<td>${(data.taskNnum???string(data.taskNnum?html,"未设置"))!'未设置'}</td>
								<td>${(data.name???string(data.name?html,"未设置"))!'未设置'}</td>
								<td>${(data.createTime???string(data.createTime?html,"未设置"))!'未设置'}</td>
								<td>${(data.beginTime???string(data.beginTime?html,"未设置"))!'未设置'}</td>
								<td>${(data.endTime???string(data.endTime?html,"未设置"))!'未设置'}</td>
								<td>${(data.result???string(data.result?html,"未设置"))!'未设置'}</td>
								<td>${(data.status???string(data.status?html,"未设置"))!'未设置'}</td>
								<td>${(data.version???string(data.version?html,"未设置"))!'未设置'}</td>
								<td align="center">
									<a class="btn btn-default btn-xs icon-only green update" href="javascript:void(0);"  serializeNum="${serializeNum}" editUrl="${editUrl}" targetDataId="${data.id}"><i class="fa  fa-edit"></i></a>
									<a class="btn btn-default btn-xs icon-only red delete" href="javascript:void(0);"   serializeNum="${serializeNum}" deleteUrl="${deleteUrl}" targetDataId="${data.id}"><i class="fa fa-trash-o"></i></a>
								</td>
							</tr>
						</#list>
						</tbody>
					</table>
				</div>
				${pagingBar}
			</div>
		</div>
	</div>
</div>
<script>
    $(".selectpicker").select2();
</script>